import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
// 引入音频文件
// import audio from './../static/music/10683.mp3'

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

document.body.addEventListener('click',function( e ){
  let event = e || window.event;
  let target = event.target || event.srcElement;
  let clickMusic = target.getAttribute('clickMusic')
  if(clickMusic==='true') Vue.prototype.playAudio()
  else return false;
})

